package com.icehand.demo.service.strategy.handler;

import com.icehand.demo.dto.OrderDTO;
import com.icehand.demo.enums.OrderTypeEnums;
import com.icehand.demo.service.strategy.AbstractOrderHandler;
import com.icehand.demo.service.strategy.annonation.OrderHandlerType;
import org.springframework.stereotype.Component;

@Component
@OrderHandlerType(type = OrderTypeEnums.GROUP)
public class GroupOrderHandler extends AbstractOrderHandler {
    @Override
    public String handle(OrderDTO dto) {
        return "团购订单【策略模式】";
    }
}
